
//mutaions 操作
import state from  './state'
import  commonUtils from  '../common/commonUtils'
export  default {
  INSERTARR(state,{oneMsg}){
       state.visitorMsgList.unshift(oneMsg)
  },

  SAVECHILDREPLY(state,obj){
            var one = state.visitorMsgList[obj.arrayIndex]
    console.log(one)
    console.log(typeof one)
    if (!one) {
         commonUtils.AlertErrorMsg("回显失败，请与管理员联系!")
         return;
    }else {
      state.visitorMsgList.splice(obj.arrayIndex, 1, obj.msg)

    }

  },

  ADDTOHEAD(state,obj){
    state.articleCommentList.unshift(obj)
  }



}
